package com.maywide.jdp.system.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.maywide.jdp.core.vo.Context;
import com.maywide.jdp.system.entities.Organization;
import com.maywide.jdp.system.vo.Task;

/**
 * <b>任务Service接口</b><br>
 * 
 * @author luoyang
 * @version 1.0
 * @since JDK1.6
 */
public interface TaskService {
	/**
	 * 取得某业务模块的任务列表
	 * 
	 * @param busnessCode
	 *            业务模块编码
	 * @param request
	 *            HttpServletRequest对象
	 * @return 任务列表
	 */
	public List<Task> getTasks(String busnessCode, HttpServletRequest request,
			HttpServletResponse response, HttpSession session)
			throws Exception;
	
	/**
	 * 获取上下问
	 * @param request
	 *            HttpServletRequest对象
	 * @return 上下文对象
	 */
	public Context getContext(HttpServletRequest request,
			HttpServletResponse response, HttpSession session) throws Exception;

	/**
	 * @param request
	 * @return
	 * @throws Exception
	 */
	public List<Organization> showEntity(HttpServletRequest request,
			HttpServletResponse response, HttpSession session) throws Exception;
}
